import request from './request.js'

export const login = (data) => request('post', '/login', { data })
export const logout = (data) => request('post', '/logout', { data })
export const unlockscreen = (data) => request('post', '/unlockscreen', { data })

export const getMenuList = (data) => request('get', '/menu/list', { data })
export const getParentMenuList = (data) => request('get', '/parentmenu/list', { data })
export const getPermissionList = (data) => request('get', '/permission/list', { data })
export const getUserList = (data) => request('get', '/user/list', { data })
export const getRoleList = (data) => request('get', '/role/list', { data })
export const getDepartmentList = (data) => request('get', '/department/list', { data })